package com.wjjun.test.ui.viewmodel

import androidx.lifecycle.MutableLiveData
import com.wjjun.app.R
import com.wjjun.base.ui.viewmodel.BaseActivityViewModel
import com.wjjun.data.respository.TestRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import dagger.hilt.android.scopes.ViewModelScoped
import javax.inject.Inject

/**
 *
 * author : wangjunjun
 * date   : 2022/7/20
 * desc   :
 */
// 如果要在viewModel中注入repository,则使用以下方式
//@ViewModelScoped
//class TestReqViewModel @Inject constructor(var testRepository: TestRepository) : BaseActivityViewModel() {
class TestReqViewModel: BaseActivityViewModel() {

    val bannerList = MutableLiveData<List<String>>()

    override fun getLayoutId(): Int {
        return R.layout.activity_test_req
    }
}